package gui;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.GridBagLayout;
import java.awt.Rectangle;
import java.io.File;
import java.util.HashMap;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;

import code.Language;
import code.Settings;

public class MainPanel extends JPanel {

	private static final long serialVersionUID = 1L;

	private JLabel jLabel71 = null;
	
	private HashMap labels;
	private Settings s;
	
	/**
	 * This is the default constructor
	 */
	public MainPanel() {
		super();
		Language l = new Language();
		s= new Settings();
		labels = l.changeLanguage((String) s.global.get("language"), "MainPanel", (String) s.global.get("installPath"));
		initialize();
	}


private JLabel getJLabel() {
	if (jLabel71 == null) {
		jLabel71 = new JLabel(new ImageIcon((String) s.global.get("installPath") + File.separator + "images/en/key_main.gif"));
		jLabel71.setBounds(new Rectangle(7, 5, 304, 142));
		jLabel71.setText((String) labels.get("jLabel71"));
	}
	return jLabel71;
}
	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		this.setSize(300, 200);
		//this.setLayout(new GridBagLayout());
		this.setLayout(null);
		this.setBackground(Color.WHITE);
		this.add(getJLabel(), null);
		this.setPreferredSize( new Dimension( 300, 200 ) );
		this.setMinimumSize( new Dimension( 100, 50 ) );
		
	}

}
